<!DOCTYPE html PUBLIC "//W3C//DTD XHTML 1.0 Transitional//EN"
                          "http://www.w3.org/TR/xhtml1/DTD/xhtml1transitional.dtd" >
<html>
   <head>
         <title>Recipe</title>
      <%= stylesheet_link_tag "recipe" , :media => "all" %>
         <%= auto_discovery_link_tag(:rss, :controller => "post", :action => 'index') %>
         <%= javascript_include_tag :defaults   %>
   </head>
    <body>
<div id="header">
<h1>Welcome to Recipe Website </h1>
 <div id="menu">
  <ul id="nav">
    <% if session[:logged_in] != 1 %>
    <li><%=link_to "Login", {:controller => 'login', :method => 'index'} %></li>
    <% end %>
    <li><%=link_to "Top Recipes", {:controller => 'recipe', :action => 'index'} %></li>
    <li><%=link_to "Search Recipes", {:controller => 'recipe', :action => 'search'} %></li>
 <!-- This option will only show for Admin users. It allows them to look at the users -->
  <% if session[:is_admin] == true %>
  <li><%=link_to "Users", {:controller => 'users', :action => 'index'} %></li>
  <% end %>
  <!-- Will only show logout option box to logged in users -->
  <% if session[:logged_in] == 1 %>
   <li><%=link_to "myCookBooks", {:controller => 'cookbooks', :action => 'index'} %></li>
   <li><%=link_to "Logout", {:controller => 'login', :method => 'logout'} %></li>
  <% end %>
  </ul>
 </div>
</div>
<div id="content">
<div id="right">
  <% if flash[:notice] %>
  <div id="notice"><%= flash[:notice] %></div>
  <%end%>
         <%= yield :layout %>
 </div>

<div id="left">
	<div class="box">
			<h2>News :</h2>
		        <p>Site in Progress</p>
	</div>

	<%#*<div class="box">%>
				<%#*<h2>Similar Links :</h2>%>
				<%#*<ul>%>
				<%#*<li><a href=" ">Ruby </a></li>%>
				<%#*<li><a href=" ">On</a></li>%>
				<%#*<li><a href=" ">Rails</a></li>%>
				<%#*</ul>%>
	<%#*</div>%>


</div>
</div>
</body>
</html>


